package com.zut.movie.mapper;

import com.zut.movie.entity.Movie;
import com.zut.movie.entity.User;
import com.zut.movie.entity.vo.MovieVo;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;

import java.util.List;

@Mapper
public interface MovieMapper {


    void insert(Movie movie);

    List<MovieVo> getAll();

    void del(Long orderId);

    @Select("select cinema_id from mov where order_id=#{orderId}")
    Long getCinemaIdByOrderId(Long orderId);
}
